/**
 * 
 */
package MessageTypes;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.ms.service.module.account.message.SCharacterLoginNotify;
import com.ms.service.module.commonsettings.CommonSettings;
import com.xpec.c4.message.MessageTypes;
import com.xpec.c4.service.annotations.MessageType;
import com.xpec.c4.service.common.BaseMessageAction;
import com.xpec.c4.service.group.transportlayer.SyncModuleInfosMessage;

/**
 * @author TW15010
 *
 */
public class BasicServiceModuleAction extends BaseMessageAction {
	/** log4j object */
	private static final Log log = LogFactory.getLog(BasicServiceModuleAction.class);

	@MessageType(typeCode = MessageTypes.S_SERVER_SYNC_INFOS)
	public void recvSyncModuleInfos(SyncModuleInfosMessage message){
		getModule().onSyncInfos(message);
	}
	
	@MessageType(typeCode = MessageTypes.S_UPDATE_COMMON_SETTINGS_TO_SERVERS)
	public void recvUpdateCommonSettings(CommonSettings commonSettings){
		getModule().onUpdateCommonSettings(commonSettings);
	}
	
	@MessageType(typeCode = MessageTypes.S_ACCOUNT_CHARACTER_LOGIN_NOTIFY)
	public void recvCharacterLoginNotify(SCharacterLoginNotify notify) {
		getModule().onPlayerLoginGameNotify(notify);
	}
}
